﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VM.Common.Result;
using VM.Entity.EntityDto.Order;
using VM.Entity.EntityMap.Goods;
using VM.Entity.EntityMap.ICon;
using VM.Entity.EntityMap.Lunbo;
using VM.Entity.EntityMap.Menu;
using VM.Entity.EntityMap.Order;
using VM.Entity.EntityMap.ShopCar;
using VM.Entity.EntityMap.System.Code;

namespace VM.IDAL.ShopCar
{
    public interface IOrderDAL
    {
        public sys_order addOrder(sys_order obj);
     
        public PagingData<getOrderListDto> getOrderList(int userId, int status, string OrderInfo, int pageIndex, int pageSize);

        public int deleteOrderById(int userId, int shopCarId);
        public getOrderInfoDto getOrderInfoById(int id);
        public int cancelOrderById(int id);
        public int updateOrderStatusById(updateOrderStatusByIdDto item);
        public int updateOrderQty(int specId, int qty);
        public int checkStockQty(int specId, int qty);
    }
}
